package com.yurui.anno.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;


@Component
public class MyEventListener implements ApplicationListener<Demo1Event> {

    @Override
    public void onApplicationEvent(Demo1Event demoEvent) {

        System.out.println(demoEvent.getA());

    }

}
